var health = new Vue({
	el: '#health',
	data: {
		list: [
			{
				text: '心率',
				status: true
			},{
				text: '血氧',
				status: true
			},{
				text: '压力',
				status: true
			}
		],
		slots: [],
		status: true,
		popupVisible: false,
		pickerValue: '',
		value: 160
	},
	mounted() {
		
	},
	methods: {
		confirm(){
			this.popupVisible = false;
			if (this.pickerValue) {
				this.value = this.pickerValue
			}
		},
		onValuesChange(_, values) {
			this.pickerValue = values[0]
		},
		showPicker() {
			this.popupVisible = true;
			let arr = Array(121).fill(1).map((v, k) => k + 100)
			this.slots = [{
				flex: 1,
				values: arr,
				defaultIndex: arr.map(v => v).indexOf(this.value)
			}]
		}
	},
})